gtk/gtkflowbox: Fix build warning/error
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 7 Oct 2013 04:00:30 +0000 (12:00 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 7 Oct 2013 04:13:11 +0000 (12:13 +0800)
The newly-added gtk_flow_box_child_is_selected() needed to return a
gboolean, so use g_return_val_if_fail() to return FALSE when an invalid
GtkFlowBoxChild* is passed in.

gtk/gtkflowbox.c

index 34a99a382abef947a74762b737a45e291c886a9a..96d57f248803490dfa0f939b10ad3fd60795240a 100644 (file)
@@ -680,7 +680,7 @@ gtk_flow_box_child_get_index (GtkFlowBoxChild *child)
 gboolean
 gtk_flow_box_child_is_selected (GtkFlowBoxChild *child)
 {
-  g_return_if_fail (GTK_IS_FLOW_BOX_CHILD (child));
+  g_return_val_if_fail (GTK_IS_FLOW_BOX_CHILD (child), FALSE);
 
   return CHILD_PRIV (child)->selected;
 }